class people {
    // name: string;
    // age: number;
    // sex: string;
    // constructor(name: string,  age: number, sex: string){
    //     this.name = name;
    //     this.age = age;
    //     this.sex = sex;
    // }
    
    // 等同与上面写法，要使用 public 修饰符
    constructor(
        public name: string,
        public age: Number,
        public sex: String
    ){}
}

let obj = new people('德玛西亚', 120, '男');
console.log(obj)

export default {}